package cn.com.yinhex.util;

import ayou.util.DOC;

public class Config {
	public static DOC extype = new DOC();
	
	public static DOC sysconfig = new DOC();
	
	public static String WEBAPPPATH = "/data/svn/freeovp/trunk/dist/webapp/";
	
	static {
		extype.put("链接", "1");
		extype.put("图片", "10");
		extype.put("英文", "100");
		extype.put("删除", "100000000");
		
		
		
		
		String svndir = Config.class.getResource("./").toString();
		svndir = svndir.split("WEB-INF")[0];
		svndir = svndir.replaceFirst("file:", "");
		sysconfig.put("database", "freeovp");
//		sysconfig.put("domain", "ovp.cc.com");
		sysconfig.put("images", "profile\\");
        
        sysconfig.put("adminEmail", "admin@163.com");
	}
	
//	static {
//		String svndir = Config.class.getResource("./").toString();
//		svndir = svndir.split("WEB-INF")[0];
//		svndir = svndir.replaceFirst("file:", "");
//		sysconfig.put("database", "ocms");
//		sysconfig.put("svndir", svndir);
//		sysconfig.put("htmldir", sysconfig.get("svndir") + "html/");
//	}

	public static String get(String key) {
		return sysconfig.get(key);
	}
}
